<?php
/**
 * Created by PhpStorm.
 * User: lyang
 * Date: 2017/1/1
 * Time: 0:33
 */


function menu_list($type){
    $db = YC::make("DB");
    $data = $db->select(
        "yc_menu",
        "*",
        [
            "type[=]"=>$type,
        ]
    );
    return $data;
}